package com.agrm.address.mapper;

import com.agrm.model.address.dto.AddressQuery;
import com.agrm.model.address.pojo.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AddressMapper extends BaseMapper<Address> {

    /**
     *  分页条件查询
      * @param query 查询条件
      * @return 查询结果
     */
    Page<Address> selectQuery(@Param("query") AddressQuery query);
}
